/**
 * 读取excel
 * @param excel
 * @param readExcel
 * @returns
 */
export const readFile = (file: any) => {
  return new Promise(resolve => {
    let reader = new FileReader();
    reader.readAsBinaryString(file);
    reader.onload = (ev: any) => {
      resolve(ev.target.result);
    };
  });
};
